---
import LayoutMain from "@layouts/LayoutMain.astro";
import LayoutMainBottom from "@layouts/LayoutMainBottom.astro";
import LayoutMainBottomLeft from "@layouts/LayoutMainBottomLeft.astro";
import LayoutMainBottomRight from "@layouts/LayoutMainBottomRight.astro";
import LayoutMainTop from "@layouts/LayoutMainTop.astro";
import TimeLineLeft from "./TimeLineLeft.astro";  
import AsideNotice from "../common/aside/AsideNotice.astro";
import AsideAuthor from "../common/aside/AsideAuthor.astro";
import AsideComment from "../common/aside/AsideComment.astro";
import AsideWebInfo from "../common/aside/AsideWebInfo.astro";
import AsideHotTag from "../common/aside/AsideHotTag.astro";
import AsideArticleList from "../common/aside/AsideArticleList.astro";
import CommonTool from "@components/common/CommonTool.astro";
import CommonTop from "@components/common/CommonTop.astro";
import CommonPage from "@components/common/page/CommonPage.astro";

---

<LayoutMain>
  <th:block th:with="pageSize=${pageSize==null?10:pageSize[0]},
  crPm=${crTime==null?'?':'?crTime='+crTime[0]},
  data=${@articleTag.groupOrderByTime(themeName,crTime==null?'':crTime[0],pageNum==null?1:pageNum[0],pageSize)},
  page=${'/timeLine'+crPm},
  bgUrl=${'/nice/static/images/thumbs/'+#numbers.formatDecimal(T(java.lang.Math).floor(T(java.lang.Math).random()*10),1,0)+'.jpg'}">
  <LayoutMainTop >
     <CommonTop  bgImg="${bgUrl}">
            <div class="grid grid-cols-6 gap-4">
              <div class="col-start-2 col-span-4 text-center z-10">
                <h1
                  class="inline-block mb-2 text-3xl font-extrabold tracking-tight mt-36 text-gray-900 dark:text-white"
                >
                  时间线
                </h1>
                <p class="mb-4 text-lg text-gray-600 dark:text-gray-400" th:text="${'文章总数:'+data.total}">
                </p>
              </div>
            </div>
      </CommonTop>
  </LayoutMainTop>
  <LayoutMainBottom>
    <LayoutMainBottomLeft>
      <TimeLineLeft />  
      <CommonPage/>
    </LayoutMainBottomLeft>
    <LayoutMainBottomRight >
      <AsideAuthor />

      <AsideComment />

      <AsideNotice />

      <AsideHotTag />

      <AsideArticleList />

      <AsideWebInfo />

    </LayoutMainBottomRight>
  </LayoutMainBottom>
</th:block> 
</LayoutMain>
<CommonTool></CommonTool>

